<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file ="taglibs.jsp" %>
<%@include file="RolePowerManager.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
	
  <link rel="stylesheet" href="${ctx}/css/common.css" type="text/css"></link>
  <link rel="stylesheet" href="${ctx}/css/reset.css" type="text/css"></link>
  
    <script type="text/javascript" src="${ctx}/js/jquery-1.7.2.js"></script>
  
  <script type="text/javascript" src="${ctx}/js/transfer/transfer.js"></script>
  <script type="text/javascript" src="${ctx}/js/jquery.easydrag.handler.beta2.js"></script>
 <script type="text/javascript" src="${ctx}/js/My97DatePicker/WdatePicker.js"></script>
  <script type='text/javascript' src='${ctx}/dwr/interface/TansferMag.js'></script>
 <script type='text/javascript' src='${ctx}/dwr/interface/DeptDAOImpl.js'></script>
 <script type='text/javascript' src='${ctx}/dwr/interface/DutyDAOImpl.js'></script>
  <script type='text/javascript' src='${ctx}/dwr/interface/EmpDAOImpl.js'></script>
	<script type='text/javascript' src='${ctx}/dwr/engine.js'></script>
	<script type='text/javascript' src='${ctx}/dwr/util.js'></script>
  </head>
  
  <body onload="getDept()">
  	  <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
			<TR height=28>
				<TD background=../images/title_bg1.jpg style="FONT-SIZE: 12px;">
					当前位置:人事调配管理 >> 人事调配记录查询
				</TD>
			</TR>
			<TR>
				<TD bgColor=#b1ceef height=1></TD>
			</TR>
			<TR height=20>
				<TD background=../images/shadow_bg.jpg></TD>
			</TR>
		</TABLE>
		
	<form action="serchTransfer" method="post" id="form">
	  <div class="query" >
	  <div class="querytype">
	  	<label>查询条件：</label>
	  	<select class="queryselect" name="query_t" id="selecttype" onchange="changeselecttype()">
			<option value="empno">
			员工编号
			</option>
			<option value="b_dept">
			调动前部门
			</option>
			<option  value="b_duty">
			调动前职位
			</option>
			<option  value="time">
			时间
			</option>
		</select>
		<span id="other">
		<input class="queryinput" type="text" name="querytype"/>
		</span>
	  </div>
	  
	  <div class="querytime">
	  	<label>调配时间：</label>
	  	<div class="selecttime">
	  		<label>起始:<input type="text" name="bdate"  onClick="WdatePicker()" size="10"/></label>
	  		<label>结束:<input type="text" name="edate"  onClick="WdatePicker()" size="10" style="margin-right: 10px"/></label>
	  	</div>
	  	<div class="querybtn">
	  		<span class="STYLE1"><img src="../images/a1.gif" width="9" height="9" /></span>
            <span class="STYLE1"> </span><a style="cursor: pointer;" onclick="serch()">查询</a><span class="STYLE1"></span>
	  		
	  	</div>
	  	
      </div>
	  <div class="clear"></div>
	  </div>
	  </form>
	  
        <div class="bottom" ></div>
        <div id="main">
        <table id="detail_t">
          <tr>
            <th>序号</th>
            <th>员工编号</th>
            <th>调动前部门</th>
            <th>调动后部门</th>
            <th>调动前职务</th>
            <th>调动后职务</th>
            <th>调动时间</th>
            <th>调动原因</th>
            <th>更多操作</th>
          </tr>
          
          <c:forEach items="${page.list}" var="c" varStatus="st">
    			<tr class="items">
    			<td>${st.index+1}</td>
    				<td>${c.emp.empno}</td>
    				<td>${c.beforedept.name}</td>
    				<td>${c.afterdept.name}</td>
    				<td>${c.beforeduty.name}</td>
    				<td>${c.afterduty.name}</td>
    				<td>${c.time}</td>
    				<td>${c.reason}</td>
    				<td>
    				  <div align="center">
            <span class="STYLE1"><img src="${ctx}/images/037.gif" width="9" height="9" /></span>
            <span class="STYLE1"> [</span><a href="#" onclick="updatetransfer('${c.id}')">编辑</a><span class="STYLE1">]</span>
            &nbsp;&nbsp;&nbsp;
            <span class="STYLE2"><img src="${ctx}/images/010.gif" width="9" height="9" /></span>
            <span class="STYLE2"> </span><span class="STYLE1">[</span><a href="javascript:void(0)" onclick="Delete('${c.id}')">删除</a><span class="STYLE1">]</span>
            </div>
            </td>
    		</tr>
    		</c:forEach>
    		
        </table>
			<div class="manu">共${page.totalCount}条记录当前第<font color="#ff6600">${page.pageNo}/${page.pageCount}</font>页
				 <a href="TransferServlet?pageNo=${1}">首页</a>
				  <a href="TransferServlet?pageNo=${page.pageNo-1}">上一页</a>
				  <a href="TransferServlet?pageNo=${page.pageNo+1}">下一页</a>
				  <a href="TransferServlet?pageNo=${page.pageCount}">末页</a> 每页显示<input type="text" id="pageSize" name="pageSize" size="4"/>条<input type="submit" value="提交" onclick="changePageSize_st()"/> 
			</div>
		</div>


 <div id="pop_div" class="pop_box">
			<div class="p_head">
				<span class="p_h_title">人事调配信息</span> <span><a
					class="p_h_close" onclick="hideDiv('pop_div');" title="close">X</a>
				</span>
			</div>
			<div class="p_box_body" id="p_b_body">
				<div class="p_con">
					<table id="p_con_t">
					<tr>
						<input type="hidden" id="transferid" value="" name="transferid"/>
					    <td class="t1">员工编号：<input type="hidden" id="empno" value="" name="empno"/></td>
					    <td id="EmpTransfer"></td>
					  </tr>
					  <tr>
					    <td class="t1">调动前部门：<input type="hidden" id="beforedept" value="" name="b_dept"/></td>
					    <td id="beforedept2"></td>
					  </tr>
					  <tr>
					    <td class="t1">调动后部门：</td>
					    <td><select id="dept2">
					    <option></option> 
					    </select></td>
					  </tr>
					  <tr>
					    <td class="t1">调动前职务：<input type="hidden" id="beforeduty" value="" name="b_duty"/></td>
					    <td id="beforeduty2"></td>
					  </tr>
					  <tr>
					    <td class="t1">调动后职务：</td>
					    <td><select id="duty2">
					    <option></option> 
					    </select> </td>
					  </tr>
					  <tr>
					    <td class="t1">调动时间：</td>
					    <td><input value="" id="time" type="text"  onClick="WdatePicker()" size="10"/></td>
					  </tr>
					  <tr>
					    <td class="t1">调动原因：</td>
					    <td><input type="text" id="reason" value="">
					    </td>
					  </tr>
					  <tr>
					  	<td>f</td>
					  	<td><input type="button" value="提交审核" onclick="checkInfo()"></td>
					  </tr>
					 
					  
					</table>
				</div>
			</div>
		</div>
  </body>
</html>
